package com.pth.service.impl;

import java.util.List;

import com.pth.dao.HuatiDAO;
import com.pth.model.Huati;
import com.pth.service.HuatiService;

public class HuatiServiceImpl implements HuatiService {

	private HuatiDAO dao;
	
	public void add(Huati huati) {

		dao.save(huati);
	}

	public void delete(Huati huati) {

		dao.delete(huati);
	}

	public void modify(Huati huati) {

		dao.update(huati);
		
	}

	public Huati getHuatiByid(int id) {

		
		return dao.getHuatiByid(id);
	}

	public List<Huati> getAllHuatis() {

		return dao.getHuatis();
		
	}

	public HuatiDAO getDao() {
		return dao;
	}

	public void setDao(HuatiDAO dao) {
		this.dao = dao;
	}

}
